<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'game';
$return=array();
if($_RQ['op']=='game'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('gamexieyi',$postdata);
		exi('设置成功');
	}
	$plugins =$this->plugins();
	$return['item']=$this->plugin_setting('gamexieyi');
	$htmls=array(
		'type'=>'edit',
		'tabs'=>array(
			array('op'=>'game','title'=>'活动规则'),
			array('op'=>'system','title'=>'服务协议'),
		),
		'edit_tab'=>true,
		'edit'=>array(
			array('type'=>'richtext','title'=>'活动规则','name'=>'gamecontent'),
				
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
if($_RQ['op']=='system'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('systemxieyi',$postdata);
		exi('设置成功');
	}
	$plugins =$this->plugins();
	$return['item']=$this->plugin_setting('systemxieyi');
	$htmls=array(
		'type'=>'edit',
		'tabs'=>array(
			array('op'=>'game','title'=>'活动规则'),
			array('op'=>'system','title'=>'服务协议'),
		),
		'edit_tab'=>true,
		'edit'=>array(
			array('type'=>'richtext','title'=>'活动规则','name'=>'systemcontent'),
				
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}


